﻿@using Carer.Data
@using Carer.View
@{
    ViewBag.Title = "收入统计";
    Layout = "~/Views/Shared/_Layout.cshtml";

    var categories = ViewBag.Categories as IList<Category>;
    if (categories == null)
    {
        categories = new List<Category>();
    }
}

<div id="list" class="view">
    <div class="query">
        <ul class="tool">
            <li><button class="export btn btn-default"><span class="export"></span> 导 出</button></li>
        </ul>
        <form action="">
            <table>
                <tr>
                    <td class="title">结束时间</td>
                    <td><input name="Start" type="text" class="date form-control" /></td>
                    <td class="conn">----</td>
                    <td><input name="End" type="text" class="date form-control" /></td>
                    <td class="title">服务类别</td>
                    <td>
                        <select name="Category" class="form-control">
                            <option value="">所有</option>
                            @foreach (var item in categories)
                            {
                                <option value="@item.Name">@item.Name</option>
                            }
                        </select>
                    </td>
                    <td class="title">所属公司</td>
                    <td>
                        <select name="Company" class="form-control">
                            <option value="">所有</option>
                            <option>珅昕</option>
                            <option>复医</option>
                        </select>
                    </td>

                    <td rowspan="2" class="query"><button class="query btn btn-primary"><i class="fa fa-search fa-lg"></i> 查 询</button></td>
                </tr>
                <tr>
                    <td class="title">区号</td>
                    <td><input name="Area" type="text" class="form-control" /></td>

                    <td class="title">凭证类型</td>
                    <td>
                        <select name="ReceiptType" class="form-control">
                            <option value="">所有</option>
                            <option>发票</option>
                            <option>收据</option>
                        </select>
                    </td>

                    <td class="title">凭证号</td>
                    <td><input name="ReceiptNo" type="text" class="form-control" /></td>

                    <td class="title">签单人</td>
                    <td><input name="BillSigner" type="text" class="form-control" /></td>
                </tr>
                <tr>
                    <td class="title">编号</td>
                    <td><input name="Bed" type="text" class="form-control" /></td>
                    <td class="title">客户姓名</td>
                    <td><input name="CustomerName" type="text" class="form-control" /></td>
                    <td class="title">结算标识</td>
                    <td>
                        <select name="OnlySettle" class="form-control">
                            <option value="0">所有</option>
                            <option value="1">已结算</option>
                            <option value="2">未结算</option>
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    </div>

    <div class="list">
        <table class="list">
            <thead>
                <tr>
                    <th>区号</th>
                    <th>编号</th>
                    <th>客户姓名</th>
                    <th>服务类别</th>
                    <th>服务项目</th>
                    <th>开始时间</th>
                    <th>结束时间</th>
                    <th>正常天数</th>
                    <th>节假天数</th>
                    <th>服务单号</th>
                    <th>签单人</th>
                    <th>凭证类型</th>
                    <th>凭证号</th>
                    <th>所属公司</th>
                    <th>单价</th>
                    <th>应收</th>
                    <th>折扣</th>
                    <th>调整</th>
                    <th>实收</th>
                    <th>预收</th>
                    <th>结算小计</th>
                    <th>结算调整</th>
                    <th>结算支出</th>
                    <th>管理费</th>
                    <th>备注</th>
                </tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/Content/Common/util.js?v=" + MvcApplication.TimeStamp)
    @Scripts.Render("~/Content/Business/revenue.js?v=" + MvcApplication.TimeStamp)
}


